﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
   public class Tax
    {
        #region Properties
        public int ID { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Descripton { get; set; }
        public string Category { get; set; }
        public double Rate { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public int TaxTypeID { get; set; } 
        #endregion

        #region NavigationalProperties
       [ForeignKey("TaxTypeID")]
        public virtual TaxType TaxType { get; set; }
        public virtual ICollection<AccountType> AccountTypes { get; set; }
        public virtual ICollection<AccountNature> AccountNatures { get; set; }
        public virtual ICollection<Account> Accounts{ get; set; }
        #endregion

    }
}
